﻿//
//注释
// 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Library
{
    public class SqlUtil
    {
        /// <summary>
        /// 获取主键Id
        /// </summary>
        /// <returns>年月日时分秒毫秒+4位随机数</returns>
        public static string GetPrimaryKeyId()
        {
            Random rd = new Random();
            return DateTime.Now.ToString("yyyyMMddhhmmssfff") + Math.Floor(rd.NextDouble() * 10000);
        }
    }
}
